package com.ruoyi.teach.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teach.mapper.NbChapterVedioMapper;
import com.ruoyi.teach.domain.NbChapterVedio;
import com.ruoyi.teach.service.INbChapterVedioService;

/**
 * 章节视频关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class NbChapterVedioServiceImpl implements INbChapterVedioService 
{
    @Autowired
    private NbChapterVedioMapper nbChapterVedioMapper;

    /**
     * 查询章节视频关联
     * 
     * @param id 章节视频关联主键
     * @return 章节视频关联
     */
    @Override
    public NbChapterVedio selectNbChapterVedioById(Long id)
    {
        return nbChapterVedioMapper.selectNbChapterVedioById(id);
    }

    /**
     * 查询章节视频关联列表
     * 
     * @param nbChapterVedio 章节视频关联
     * @return 章节视频关联
     */
    @Override
    public List<NbChapterVedio> selectNbChapterVedioList(NbChapterVedio nbChapterVedio)
    {
        return nbChapterVedioMapper.selectNbChapterVedioList(nbChapterVedio);
    }

    /**
     * 新增章节视频关联
     * 
     * @param nbChapterVedio 章节视频关联
     * @return 结果
     */
    @Override
    public int insertNbChapterVedio(NbChapterVedio nbChapterVedio)
    {
        return nbChapterVedioMapper.insertNbChapterVedio(nbChapterVedio);
    }

    /**
     * 修改章节视频关联
     * 
     * @param nbChapterVedio 章节视频关联
     * @return 结果
     */
    @Override
    public int updateNbChapterVedio(NbChapterVedio nbChapterVedio)
    {
        return nbChapterVedioMapper.updateNbChapterVedio(nbChapterVedio);
    }

    /**
     * 批量删除章节视频关联
     * 
     * @param ids 需要删除的章节视频关联主键
     * @return 结果
     */
    @Override
    public int deleteNbChapterVedioByIds(Long[] ids)
    {
        return nbChapterVedioMapper.deleteNbChapterVedioByIds(ids);
    }

    /**
     * 删除章节视频关联信息
     * 
     * @param id 章节视频关联主键
     * @return 结果
     */
    @Override
    public int deleteNbChapterVedioById(Long id)
    {
        return nbChapterVedioMapper.deleteNbChapterVedioById(id);
    }
}
